\ProvidesClass{ctexbeamerofagan_widescreen}
\LoadClass[UTF8,aspectratio=169]{ctexbeamer}
\usepackage{comment}
\usepackage{imagan}
\usepackage{bookmark}
\usepackage{mybeamercommand}
\mode<presentation>{
  \usetheme{Madrid}
} 
%若希望去掉页脚页码显示，请在导言区调用该命令
\newcommand\nofootline{
  \setbeamertemplate{footline}{}
}
%设置背景图片
\newcommand{\backgroundimage}{lightgreen.png}
%标题编号
\setbeamertemplate{section in toc}[sections numbered,first section={2},fg=white!70]
\setbeamertemplate{subsection in toc}[subsections numbered]
% 去掉下面没用的导航条
\setbeamertemplate{navigation symbols}{}
% 简化页脚区内容
\setbeamertemplate{footline}{
  \begin{flushright}
    \ifnum\insertframenumber > 1
    \insertframenumber{} / \inserttotalframenumber\hspace*{6ex}
    \fi
  \end{flushright}
}

%幻灯片标题前缀方框颜色
\definecolor{frametitleprefixcolor}{HTML}{C2E9F7}
%block 标题前缀方框颜色
\definecolor{blocktitleprefixcolor}{HTML}{46AE39}
%正文一级标题前缀方框颜色
\definecolor{leveloneprefixcolor}{HTML}{29AAF5}
%正文二级级标题前缀方框颜色
\definecolor{leveltwoprefixcolor}{HTML}{46AE39}
%自定义frame标题部分样式
\setbeamertemplate{frametitle}{  
  \color{black!15} % frame标题与正文间的分割线的颜色
  \underline{
    \begin{beamercolorbox}[sep=8pt,shadow=false,rounded=false]{frametitle}  
      \fcolorbox{frametitleprefixcolor}{frametitleprefixcolor}
      {\textcolor{frametitleprefixcolor}{1}}\insertframetitle\\%  
    \end{beamercolorbox}  
  }
}  
%自定义block样式
\setbeamertemplate{block begin}{  
  %\vskip1ex  
  \vspace{-1ex}
  \begin{beamercolorbox}[colsep*=.75ex,rounded=true,shadow=false]{block title}% 修改shadow=false来取消阴影  
    \usebeamerfont{block title}\insertblocktitle  
  \end{beamercolorbox}%  
  {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5ex}}%  
  \usebeamerfont{block body}%  
  \begin{beamercolorbox}[colsep*=.75ex,rounded=false,shadow=false,vmode]{block body}% 修改shadow=false来取消阴影  
  \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%  
}  
\setbeamertemplate{block end}{  
  \end{beamercolorbox}  
}  
%自定义列表样式
\setbeamertemplate{itemize item}{\textcolor{leveloneprefixcolor}{$\mathbf{\square}$}}
\setbeamertemplate{enumerate item}{\fcolorbox{blue}{green!50}{\theenumi}}
\setbeamertemplate{itemize subitem}{\textcolor{leveltwoprefixcolor}{$\square$}}
% 设置颜色标题和帧标题字体颜色
%\usecolortheme{spruce}
\setbeamercolor{title}{fg=blue,bg=blue!10}
\setbeamercolor{frametitle}{fg=blue,bg=white!10}
\setbeamercolor{block title}{fg=black,bg=black!10}
\setbeamercolor{block body}{bg=white!10}
%\settitlepageinfo{\presentationtitle}{\presentationauthor}{\orgalization}{\today}
%调整目录左边距位置,0.25表示左边距是整个幻灯片宽度的0.25
%\renewcommand{\contentsMarginLeft}{0.30}
\AtBeginSection[]{
  \frameforcontents*[1]
}
\AtBeginSubsection[]{
  \frameforcontents*[1]
}
\usepackage{algorithm2e}
\renewcommand\KwData[1]{数据:#1\\}
\renewcommand\KwResult[1]{结果:#1\\}
\renewcommand\KwIn[1]{输入:#1\\}
\renewcommand\KwOut[1]{输出:#1\\}
%\SetKwData{Kw}{数据}
%\SetKwResult{Kw}{结果}
%\SetKwInput{Kw}{输入}
%\SetKwOutput{Kw}{输出}


